/**
 * 
 * @Author: biubiu0002
 * @Date: 2021-04-26 11:41
 **/




#ifndef EAIM_SYSTEM_COURSEMAPPER_H
#define EAIM_SYSTEM_COURSEMAPPER_H

#include "Course.h"
#include <list>

class CourseMapper {

private:
    std::list<Course> courseList;
public:
    std::string getNameByCourseId(std::string courseId);
    float getCreditByCourseId(std::string courseId);
    std::list<Course> loadCourseList();
    int batchInsertCourse(std::list<Course>& studentList);
    int checkId(std::string courseId);

    const std::list<Course> &getCourseList() const;

    void setCourseList(const std::list<Course> &courseList);

    CourseMapper();


};


#endif //EAIM_SYSTEM_COURSEMAPPER_H
